package com.ccrfid.rmc6.resource.dbg;

import com.ccrfid.rmc6.service.dbg.DbgService;
import org.springframework.beans.factory.annotation.Autowired;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@Path("server")
@Produces(MediaType.APPLICATION_JSON)
public class WebServerResource {

    @Autowired
    private DbgService dbgService;

    @GET
    @Path("version")
    public String getBackServerVersion() {
        return dbgService.getServerVersion();
    }
}
